package com.usian.user.fegin;

import com.usian.model.article.pojos.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/8/25 9:02
 */
@FeignClient("leadnews-article")
public interface AuthorFegin {

    @GetMapping("/author/findByUserid/{id}")
    public ApAuthor findByUserid(@PathVariable Integer id);

    @PostMapping("/author/save")
    public ResponseResult save(@RequestBody ApAuthor apAuthor);
}
